/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;

int main_71()
{
    int T,a,b;
    scanf("%d",&T);
    while (T--)
    {
        scanf("%d%d",&a,&b);
        printf("%d\n",a+b);
    }
	return 0;
}
